<!--
  To change this template, choose Tools | Templates
  and open the template in the editor.
-->

<%@ page contentType="text/html;charset=UTF-8" %>

<html>
  <head>
    <title>Create New Attribute</title>
  </head>
  <body>
    
    <div data-role="page">
      
      <div data-role="header">
                <!--<a href="<g:createLinkTo dir="/"/>"><img id="logo" src="${createLinkTo(dir: 'images', file: 'smallcross.png')}" alt="healththink logo"/></a>-->
                <d>HealthThink</d>
       </div>
    
      <div data-role="content">
      
      <g:hasErrors>
        <div class="errors">
          <g:renderErrors bean="${attribute}" as="list" />
        </div>
      </g:hasErrors>
    
      <h1>New Attribute</h1>
      <g:form action="createNew">
        <dl>
          <g:hiddenField name="facility.name" value="${facility?.name}"/>
          <dt>Name: </dt>
          <dd><g:textField name="name" value="${attribute?.name}"/></dd>
          <dt>Description: </dt>
          <dd><g:textArea id="attributeDescription" name="description" value="${attribute?.description}" width="1000px" height="1000px"/></dd>
        </dl>
        <br><g:submitButton name="create" value="Create"/></br>
      </g:form>
    
      </div>
    
    </div>
  </body>
</html>
